var mongoose = require('../database/db').mongoose;

var Schema =  mongoose.Schema;

var schema = new Schema({
    content: String,
    coverimageurl: String,
    user: { type: Schema.Types.ObjectId, ref: 'userinformation' },
    isdelete: String,
    createtime:Date,
    updatetime:Date
});

var Post = mongoose.model('posts',schema);
module.exports = Post;
